<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <link rel='stylesheet' type='text/css' href='http://fonts.useso.com/css?family=Open+Sans:300,400,600,700,400italic'>
    <link rel="stylesheet" type="text/css" href="/study/study/Public/resource/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/study/study/Public/resource/font-awesome.min.css">    
    <link rel="stylesheet" type="text/css" href="/study/study/Public/resource/css/style.css">
    <title>Welocome！欢迎访问！！</title>
</head>

<body>


 <div class="main-body">	
        <div class="container">
            <div class="row">               
                <div class="main-page">

                    <aside class="main-navigation">
                        <div class="main-menu">

                            <div class="menu-container">
                                <div class="block-keep-ratio block-keep-ratio-2-1 block-width-full home">                                    
                                    <a href="index" class="block-keep-ratio__content  main-menu-link">
                                        <span class="main-menu-link-text">
                                            主页    
                                        </span>                                        
                                    </a>
                                </div>                                
                            </div>

                            <div class="menu-container">                                
                                <div class="block-keep-ratio  block-keep-ratio-1-1  block-width-half  pull-left  about-main">                                    
                                    
                                    <a href="about.html" data-toggle="modal" data-target="#regModa2" class="main-menu-link about block-keep-ratio__content flexbox-center">
                                        <i class="fa fa-user fa-4x main-menu-link-icon"></i>
                                      学生登录/注册
                                    </a>                                    
                                </div>
                                
                                <!-- 登录模态框 -->
<div class="modal fade" id="regModa2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  		<div class="modal-dialog" role="document">
   			<div class="modal-content">
     			<div class="modal-header">
       			
       		 		<h3 class="modal-title" id="myModalLabel">用户登录</h3>
      			</div>
      			<div class="modal-body">
			      	<!-- 模态框内部代码 -->
			    	<!-- 这是一个模态窗口信息区 -->
			    	<form method="post" action="login" enctype="multipart/form-data" class="form-horizontal">
			    	<table align="center">
			    		<tr>
			    			<td>用户名：</td><td><input name="username" type="text" placeholder="Username"></td>
			    		</tr>
			    		<tr><td>&nbsp;</td></tr>
			    		<tr>
			    			<td>密码：</td><td><input name="password" type="password" placeholder="Password"></td>
			    		</tr>			    		
			    	</table>    	
      			</div>
      			<div class="modal-footer">
			   
			        <button type="submit" class="btn btn-primary">登录</button>
			        <button type="reset" class="btn btn-default"  data-dismiss="modal">重置</button>
			       
      			</div>
      				</form>
    		</div>
  		</div>
	</div>
	<!-- 登录模态框 -->

                                <div class="block-keep-ratio  block-keep-ratio-1-1  block-width-half  pull-right  contact-main">
                                    <a href="contact.html" class="main-menu-link contact block-keep-ratio__content flexbox-center">
                                        <i class="fa fa-envelope-o fa-4x main-menu-link-icon"></i>
                                       管理员登录
                                    </a>                                
                                </div>    
                            </div>   
                            
                              <div class="menu-container">                                
                                <div class="block-keep-ratio  block-keep-ratio-1-1  block-width-half  pull-left  about-main">                                    
                                    <a href="about.html" class="main-menu-link about block-keep-ratio__content flexbox-center">
                                        <i class="fa fa-user fa-4x main-menu-link-icon"></i>
                                      个人信息
                                    </a>                                    
                                </div>

                                <div class="block-keep-ratio  block-keep-ratio-1-1  block-width-half  pull-right  contact-main">
                                    <a href="contact.html" class="main-menu-link contact block-keep-ratio__content flexbox-center">
                                        <i class="fa fa-envelope-o fa-4x main-menu-link-icon"></i>
                                       社团负责人登录
                                    </a>                                
                                </div>    
                            </div>   

                            <div class="menu-container">
                                <div class="block-keep-ratio block-keep-ratio-1-1 block-keep-ratio-md-2-1 block-width-full gallery">                                    
                                    <a href="practiceslist" class="main-menu-link  block-keep-ratio__content">
                                        <span class="main-menu-link-text">
                                            活动信息    
                                        </span>                                            
                                    </a>                                    
                                </div>                                
                            </div>
                            
                               <div class="menu-container">
                                <div class="block-keep-ratio block-keep-ratio-1-1 block-keep-ratio-md-2-1 block-width-full gallery">                                    
                                    <a href="groupslist" class="main-menu-link  block-keep-ratio__content">
                                        <span class="main-menu-link-text">
                                            社团信息    
                                        </span>                                            
                                    </a>                                    
                                </div>                                
                            </div>
                            

                            <!-- sidebar carousel -->
                            <div class="menu-container">
                                <div class="mauris">
                                    <div id="carousel-menu" class="carousel slide" data-ride="carousel">
                                        <!-- Wrapper for slides -->
                                        <div class="carousel-inner" role="listbox">
                                            <div class="item active">
                                                <img src="images/slider-img-1.png" alt="slider">
                                                <div class="carousel-caption menu-caption">
                                                    mauris vita
                                                </div>
                                            </div>
                                            <div class="item">
                                                <img src="images/menu-bg-home.png" alt="slider">
                                                <div class="carousel-caption menu-caption">
                                                    lorem ipsum
                                                </div>
                                            </div>
                                        </div>

                                        <!-- Controls -->
                                        <a class="left carousel-control" href="#carousel-menu" role="button" data-slide="prev">
                                            <span class="fa fa-caret-left" aria-hidden="true"></span>
                                            <span class="sr-only">Previous</span>
                                        </a>
                                        <a class="right carousel-control" href="#carousel-menu" role="button" data-slide="next">
                                            <span class="fa fa-caret-right" aria-hidden="true"></span>
                                            <span class="sr-only">Next</span>
                                        </a>
                                    </div>
                                </div> <!-- .mauris -->
                            </div>
                        </div> <!-- main-menu -->
                    </aside> <!-- main-navigation -->
                    

<div class="content-main">



	<div class="row">

		<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" data-find="_3">

			<div class="box bottom-main col-xs-12 col-sm-12 col-md-4 col-lg-4"
				data-find="_2">
				<div class="info float-container" data-find="_1">
					<div class="col-sm-12 bottom-title">
						<h3 class="text-uppercase">个人信息修改</h3>
						<h4 class="text-uppercase">mauris vitae erat</h4>
					</div>


					<div class="row ">

						<div class="widget-body">

							<div class="widget-forms clearfix col-md-12 col-lg-12">

								<form class="form-horizontal" method="post"
									enctype="multipart/form-data" action="updateUser">

									<input type="hidden" name="uid" value="<?php echo ($user["uid"]); ?>">

									<div class="control-group">
										<label for="username" class=" control-label">用户名</label>
										<div class="controls">
											<input type="text" class="form-control" id="username"
												name="username" placeholder="username"
												value="<?php echo ($user["username"]); ?>">
										</div>
									</div>

									<div class="control-group">
										<label for="pass" class="control-label">密码</label>
										<div class="controls">
											<input type="password" class=" form-control " id="pass"
												name="pass" placeholder="password" value="<?php echo ($user["pass"]); ?>">
										</div>
									</div>

									<div class="control-group">
										<label for="stunum" class=" control-label">学号</label>
										<div class="controls">
											<input type="text" class="form-control" id="stunum"
												name="stunum" placeholder="stunum" value="<?php echo ($user["stunum"]); ?>">
										</div>
									</div>

									<div class="control-group">
										<label for="realname" class=" control-label">真实姓名</label>
										<div class="controls">
											<input type="text" class="form-control" id="realname"
												name="realname" placeholder="realname"
												value="<?php echo ($user["realname"]); ?>">
										</div>
									</div>

									<div class="control-group">
										<label for="tele" class=" control-label">电话</label>
										<div class="controls">
											<input type="text" class="form-control" id="tele" name="tele"
												placeholder="telephone" value="<?php echo ($user["tele"]); ?>">
										</div>
									</div>

									<div class="control-group">
										<label for="email" class=" control-label">Email </label>
										<div class="controls">
											<input type="email" class="form-control" id="email"
												name="email" placeholder="email" value="<?php echo ($user["email"]); ?>">
										</div>
									</div>

									<div class="control-group">
										<label for="image" class=" control-label">头像</label>
										<div class="controls">
											<img clas="img-rounded" id="image"
												src="/study/study/Public/Uploads/photo/<?php echo ($user["photo"]); ?>" alt="no pic"
												width=150px;height=150px; />
										</div>
									</div>

									<div class="control-group">
										<label for="photo" class=" control-label">修改文件</label>

										<div class="controls">
											<input type="file" id="photo" name="photo">

										</div>
									</div>

									<div class="widget-footer">
										<br />
										<button class="btn btn-primary" type="submit">Save</button>
										<button class="btn" type="button">Cancel</button>
									</div>
								</form>

							</div>






						</div>


					</div>

				</div>

			</div>

			<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
				<div class="box bottom-main">
					<div class="info float-container">
						<div class="col-sm-12 bottom-title">
							<h3 class="text-uppercase">我参加的社团</h3>
							<h4 class="text-uppercase">mauris vitae erat</h4>
						</div>

						<div class="row">
							<div class="col-sm-12 col-md-12  contact_left">

									<table id="users"
								class="table table-striped table-bordered dataTable">
								<thead>
									<tr>
										<td class="col-sm-2">编号</td>
										<td class="col-sm-1">名称</td>
									</tr>
								</thead>
								<tbody>

									<?php if(is_array($groups)): $i = 0; $__LIST__ = $groups;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$gr): $mod = ($i % 2 );++$i;?><tr>
										<td><?php echo ($gr["gid"]); ?></td>
										<td><a href="groupInfo?gid=<?php echo ($gr["gid"]); ?>"> <?php echo ($gr["groupname"]); ?></a></td>
									</tr><?php endforeach; endif; else: echo "" ;endif; ?>


								</tbody>
						
							</table>

							</div>

						</div>

					</div>
					<p class="bottom-desc"></p>
					<hr>
					<div class="col-sm-12 location-main"></div>
				</div>

			</div>

			<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
				<div class="box bottom-main">
					<div class="info float-container">
						<div class="col-sm-12 bottom-title">
							<h3 class="text-uppercase">我参加的活动</h3>
							<h4 class="text-uppercase">mauris vitae erat</h4>
						</div>

						<div class="row">
							<div class="col-sm-12 col-md-12  contact_left">

								<table id="practices" class="table table-striped table-bordered dataTable">
								<thead>
									<tr>
										<td class="col-sm-2">活动名称</td>
										<td class="col-sm-1">社团名称</td>

									</tr>
								</thead>
								<tbody>

									<?php if(is_array($practices)): $i = 0; $__LIST__ = $practices;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$pr): $mod = ($i % 2 );++$i;?><tr>
	
										<td><a href="practiceInfo?pid=<?php echo ($pr["pid"]); ?>"><?php echo ($pr["name"]); ?></a></td>
									    <td><a href="groupInfo?pid=<?php echo ($pr["gid"]); ?>"> <?php echo ($pr["groupname"]); ?></a></td>
								
									
							</tr><?php endforeach; endif; else: echo "" ;endif; ?>
								</tbody>
							</table>

							</div>

						</div>

					</div>
					<p class="bottom-desc"></p>
					<hr>
					<div class="col-sm-12 location-main"></div>
				</div>

			</div>




		</div>



	</div>
	<!-- .main-page -->

</div>
<!-- .row -->


            <footer class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 footer">
                    <p class="copyright">Copyright © 2016 Company Name 
                    
                    | More Templates <a href="http://www.genban.org/" target="_blank" title="织梦源码">织梦源码</a> - Collect from <a href="http://www.genban.org/" title="网页模板" target="_blank">网页模板</a></p>
                </div>    
            </footer>  <!-- .row -->      
        </div> <!-- .container -->
    </div> <!-- .main-body -->

    <!-- JavaScript -->
    <script src="/study/study/Public/resource/js/jquery-1.11.3.min.js"></script>
    <script src="/study/study/Public/resource/js/bootstrap.min.js"></script>

</body>
</html>